package i.i.myapplication.model;

import java.util.List;
/**
 *
 * "uniquekey": "c275734162aa37ccc34a0ecec3af12ef",
 *                 "title": "湖南益阳警方：男子操作失误致车辆撞向路边门店 造成1死2伤",
 *                 "date": "2025-06-10 00:23:00",
 *                 "category": "头条",
 *                 "author_name": "华商网",
 *                 "url": "https://mini.eastday.com/mobile/250610002354891234739.html",
 *                 "thumbnail_pic_s": "https://dfzximg02.dfxwdc.com/news/20250610/20250610002354_8d89093f6b0c74cb9ed79386b258d5cd_1_mwpm_03201609.jpeg",
 *                 "is_content": "1"
 *
 * */
public class NewsResponse {
    private String reason;
    private Result result;

    public NewsResponse() {
    }

    public NewsResponse(String reason, Result result) {
        this.reason = reason;
        this.result = result;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public static class Result {
        private String stat;
        private List<NewsItem> data;

        public Result() {
        }

        public Result(String stat, List<NewsItem> data) {
            this.stat = stat;
            this.data = data;
        }

        public String getStat() {
            return stat;
        }

        public void setStat(String stat) {
            this.stat = stat;
        }

        public List<NewsItem> getData() {
            return data;
        }

        public void setData(List<NewsItem> data) {
            this.data = data;
        }

        public static class NewsItem {
            private String uniquekey;
            private String title;
            private String date;
            private String category;
            private String author_name;
            private String url;
            private String thumbnail_pic_s;
            private String thumbnail_pic_s02;
            private String thumbnail_pic_s03;
            private String is_content;

            public NewsItem() {
            }

            public NewsItem(String uniquekey, String title, String date, String category, String author_name,
                            String url, String thumbnail_pic_s, String thumbnail_pic_s02,
                            String thumbnail_pic_s03, String is_content) {
                this.uniquekey = uniquekey;
                this.title = title;
                this.date = date;
                this.category = category;
                this.author_name = author_name;
                this.url = url;
                this.thumbnail_pic_s = thumbnail_pic_s;
                this.thumbnail_pic_s02 = thumbnail_pic_s02;
                this.thumbnail_pic_s03 = thumbnail_pic_s03;
                this.is_content = is_content;
            }

            public String getUniquekey() {
                return uniquekey;
            }

            public void setUniquekey(String uniquekey) {
                this.uniquekey = uniquekey;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getCategory() {
                return category;
            }

            public void setCategory(String category) {
                this.category = category;
            }

            public String getAuthor_name() {
                return author_name;
            }

            public void setAuthor_name(String author_name) {
                this.author_name = author_name;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public String getThumbnail_pic_s() {
                return thumbnail_pic_s;
            }

            public void setThumbnail_pic_s(String thumbnail_pic_s) {
                this.thumbnail_pic_s = thumbnail_pic_s;
            }

            public String getThumbnail_pic_s02() {
                return thumbnail_pic_s02;
            }

            public void setThumbnail_pic_s02(String thumbnail_pic_s02) {
                this.thumbnail_pic_s02 = thumbnail_pic_s02;
            }

            public String getThumbnail_pic_s03() {
                return thumbnail_pic_s03;
            }

            public void setThumbnail_pic_s03(String thumbnail_pic_s03) {
                this.thumbnail_pic_s03 = thumbnail_pic_s03;
            }

            public String getIs_content() {
                return is_content;
            }

            public void setIs_content(String is_content) {
                this.is_content = is_content;
            }
        }
    }
}
